testsuite: Print serialized nodes when parsing fails
authorTimm Bäder <mail@baedert.org>
Wed, 24 Apr 2019 09:26:34 +0000 (11:26 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 5 May 2019 05:18:39 +0000 (07:18 +0200)
testsuite/gsk/serialize-deserialize.c

index 45d4472a70b17315f2b305780178e155a8750608..3f0941031d6495881c3cc786559078c80cb29903 100644 (file)
@@ -26,6 +26,9 @@ main (int argc, char **argv)
   bytes = gsk_render_node_serialize (node);
   /* and deserialize again... */
   deserialized = gsk_render_node_deserialize (bytes, &error);
+  if (error)
+    g_message ("OUTPUT:\n%.*s", (int)g_bytes_get_size (bytes), (char *)g_bytes_get_data (bytes, NULL));
+
   g_assert_no_error (error);
 
   /* And check if that all worked. */